package com.itheima.sh.dao;


import com.itheima.sh.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    //分页查询角色以及对应的用户和权限信息
    List<Role> queryAllUsersAndRoleAndPermissionByPage(@Param("startIndex") int startIndex,
                                                       @Param("pageSize") int pageSize);

    //分页查询角色和权限信息
    List<Role> queryAllRoleAndPermissionByPage(@Param("startIndex") int startIndex,
                                               @Param("pageSize") int pageSize);



}
